import React, { useState, useEffect, Fragment } from 'react';
import './index.less';
// 素材
import nodata from '@/assets/common/nodata.png';

const Nodata = (props: {
	show?: boolean;
	notice?: string;
	style?: any;
}) => {
  	const { show = true, notice = '暂无数据', style } = props;

	return show ? <div className='nodataWrap' style={style}>
		<img src={nodata} />
		<p>{notice}</p>
	</div> : <></>

}
export default Nodata;
